package com.liruo.learn.spring.mvc.controller.valid;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @Author:liruo
 * @Date:2023-05-10-14:10:36
 * @Desc
 */
@Valid
@RestController
@RequestMapping("/valid-class")
public class ValidClassController {
    @GetMapping
    public void f(ValidBean validBean) {
        System.out.println(validBean);
    }
}
